package com.zhuidian.mothernote.adapter;

import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.recyclerview.widget.RecyclerView.ViewHolder;

import com.base.adapter.BaseRecyclerAdapter;
import com.zhuidian.mothernote.R;
import com.zhuidian.mothernote.bean.CommentBean;


public class QuestionDetailAdapter extends BaseRecyclerAdapter<CommentBean> {

    public QuestionDetailAdapter(Context context) {
        super(context);
    }

    @Override
    protected ViewHolder onCreateItemViewHolder(ViewGroup parent) {
        return new MyViewHolder(inflate(R.layout.adapter_question_detail));
    }


    public class MyViewHolder extends ItemViewHolder {
        private ImageView iv_headimage;
        private TextView tv_name;
        private TextView tv_fan;
        private TextView tv_agreement;
        private TextView tv_answer;
        private ImageView iv_follow;
        private TextView tv_content;
        private ImageView iv_one;
        private ImageView iv_two;
        private ImageView iv_three;
        private TextView tv_comment;
        private TextView tv_send;
        private TextView tv_collect;
        private TextView tv_agree;

        public MyViewHolder(View view) {
            super(view);
            iv_headimage = (ImageView) view.findViewById(R.id.iv_headimage);
            tv_name = (TextView) view.findViewById(R.id.tv_name);
            tv_fan = (TextView) view.findViewById(R.id.tv_fan);
            tv_agreement = (TextView) view.findViewById(R.id.tv_agreement);
            tv_answer = (TextView) view.findViewById(R.id.tv_answer);
            iv_follow = (ImageView) view.findViewById(R.id.iv_follow);
            tv_content = (TextView) view.findViewById(R.id.tv_content);
            iv_one = (ImageView) view.findViewById(R.id.iv_one);
            iv_two = (ImageView) view.findViewById(R.id.iv_two);
            iv_three = (ImageView) view.findViewById(R.id.iv_three);
            tv_comment = (TextView) view.findViewById(R.id.tv_comment);
            tv_send = (TextView) view.findViewById(R.id.tv_send);
            tv_collect = (TextView) view.findViewById(R.id.tv_collect);
            tv_agree = (TextView) view.findViewById(R.id.tv_agree);
        }

        @Override
        protected void setListener(int position) {

        }

        @Override
        protected void initValue(int position, CommentBean commentBean) {

        }
    }

}


